<?php

namespace backend\jobs;

/**
 * Class OcrJob.
 */
class OcrJob extends \yii\base\BaseObject implements \yii\queue\JobInterface
{
    public $url;

    public $id;

    /**
     * @inheritdoc
     */
    public function execute($queue)
    {
        $params = ['id' => $this->id];
        $cmd = $this->url . '?' . http_build_query($params);
        file_get_contents($cmd);
    }
}
